home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1990: Discy Business / Discy Business.2mg / DEV.CD / GUIDED.TOURS / IIC.PLUS.TOUR / BASIC / WORDS.TEXT < prev    next >
Encoding:
Text File  |  1988-05-01  |  1.4 KB  |  93 lines  |  [04] ASCII Text (0x0000)

  1. %
  2. 3
  3. 10
  4. 1
  5. 38
  6.           PRINTING WORDS
  7.  
  8. In addition to all the computing
  9. that programs do, they can also
  10. display messages on the screen.
  11. ^
  12. %
  13. 3
  14. 9
  15. 1
  16. 39
  17. For instance, suppose you have a
  18. burning desire to see the words
  19. HOT FUDGE SUNDAE on the screen.
  20. ^
  21. &
  22. All you have to do is type PRINT,
  23. then put the statement you want
  24. the Apple II to print in
  25. quotation marks ("). Like this...
  26. ^
  27. &
  28. Whatever you type inside the
  29. quotation marks is called a
  30. literal quote since the computer
  31. quotes exactly what you type.
  32. ^
  33. &
  34. Now it's your turn.  Use the
  35. PRINT statement and quotation
  36. marks (") to print a literal
  37. quote on the screen.
  38. ^
  39. %
  40. 3
  41. 10
  42. 1
  43. 38
  44. No doubt you're already feeling
  45. like a computer pro.
  46. ^
  47. &
  48. That's because this training
  49. program tells you what you've done
  50. wrong if you don't type everything
  51. exactly by BASIC's rules.
  52. ^
  53. &
  54. When you are writing programs
  55. on your own, the computer will
  56. alert you to errors with messages,
  57. but the messages won't be quite as
  58. explicit.
  59. ^
  60. &
  61. For example, if you misspell
  62. PRINT, you'll hear a beep,
  63. and the computer will show you
  64. an error message.
  65. ^
  66. %
  67. 3
  68. 7
  69. 1
  70. 30
  71. Why don't you try it.
  72. Type:  PRUNT 50
  73. ^
  74. %
  75. 3
  76. 11
  77. 1
  78. 38
  79. Good job!  You successfully made a
  80. mistake when you misspelled the
  81. key word PRINT.  But don't worry,
  82. programmers often make mistakes.
  83. Welcome to the club!
  84. ^
  85. &
  86. There's a summary of how to
  87. use the PRINT statement in
  88. the BASIC manual.  Press
  89. RETURN to find out more about
  90. how BASIC works, or press
  91. ESC to return to the menu.
  92. ^
  93.